﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.Iooogle.Bms.Core;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Common;
using System.Data;

namespace Com.Iooogle.Bms.Web
{
	public partial class WebPanel_Default : BasePage
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!IsPostBack)
			{
				Database db = DatabaseFactory.CreateDatabase();
				DbCommand cmd = db.GetSqlStringCommand("SELECT * FROM `bms_users` WHERE `UserID` = @UserID");
				db.AddInParameter(cmd, "UserID", DbType.Int32, 0);
				db.ExecuteDataSet(cmd);
			}
		}
	}
}
